home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
unirdw10.zip
/
RDW.DOC
< prev
next >
Wrap
Text File
|
1993-11-26
|
3KB
|
60 lines
Uni-RDW (Report Day of Week)
A Free (but not Public Domain) Utility from UniNova Services Corporation
(c) 1993 by UniNova Services Corporation
DISCLAIMER: (You can thank a lawsuit-happy society for the inclusion of
this paragraph.) Uni-RDW, including RDW.EXE and RDW.DOC (hereafter referred
to as "the software" or "the program" or "RDW") is provided as is, with
absolutely no warranty or guarantee, implicit or explicit. By using RDW on
your system, you imply your agreement that you will accept full responsibility
for the effects of your use, misuse, or inability to use RDW.
DESCRIPTION: Uni-RDW is a simple program to tell you what day of the week
it is (Sunday, Monday, etc.). It's not as inane as that makes it sound,
however, as it is really intended to determine that information from within
a batch file, which will presumably perform differing actions dependent on
the day of week. This is particularly handy for bulletin board systems that
may have once-a-week maintenance but the BBS software in use does not support
such scheduling OR the front end being used with the BBS software prevents
the use of such scheduling.
USAGE: Simply call RDW and check the DOS ERRORLEVEL that is returned by the
program. If you are unfamiliar with using the ERRORLEVEL in a batch file,
you are advised to review your DOS manual, especially if this document does
not make sense to you. The program will return the following error codes:
0 = Sunday
1 = Monday
2 = Tuesday
3 = Wednesday
4 = Thursday
5 = Friday
6 = Saturday
10 = Error condition that should be reported to UniNova.
The following sample batch file will run the DAILY.BAT maintenance run every
day, and the SUNDAY.BAT maintenance run every Sunday:
@echo off
CALL DAILY.BAT
RDW
IF ERRORLEVEL 1 GOTO END
CALL SUNDAY.BAT
:END
Note that DOS evaluates as TRUE the condition IF ERRORLEVEL x for values
equal to and greater than x; also, Sunday equals errorlevel 0; thus, it is
necessary to check for an errorlevel higher than 0 to prevent running the
SUNDAY.BAT file every day.
The program will also report the day of the week to the console so you can
ensure correct operation. The emoticon following the Monday and Friday result
is intentional.
REGISTRATION: You are granted a free limited license to use RDW. There is
no need to register, and you may redistribute RDW freely. However, under no
circumstances will you own RDW, and your license to use and redistribute it
will be revoked in any of the following conditions:
1. You redistribute a modified version of RDW.EXE or RDW.DOC;
2. You charge more than $5 for materials/copying fee to redistribute RDW;
3. You do not include the unaltered RDW.DOC file with RDW.EXE.
SOURCE CODE: You may purchase the source code for personal information only
for $15 from UniNova Services Corporation, PO Box 900, Ellensburg, WA 98926